export default {
  // 开启命名空间
  namespaced: true,

  // 数据
  state: () => ({
    // 用户的信息对象
   // messagelist: JSON.parse(uni.getStorageSync('messagelist') || '[]'),
	 messagelist: uni.getStorageSync('messagelist') || '[]',
	
  }),

  // 方法
  mutations: {
    updatMessagelistInfo(state, messagelist) {
      state.messagelist = messagelist
	 
      this.commit('m_messagelist/saveMessagelistInfoToStorage')
    },
    saveMessagelistInfoToStorage(state) {
     // uni.setStorageSync('messagelist', JSON.stringify(state.messagelist))
	 uni.setStorageSync('messagelist', state.messagelist)
    },
   
   
  },

  getters: {
   
  }
}
